/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.bank.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import iaas.service.IBaseService;

import com.wealth.bank.entity.Branch;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
public interface IBranchService extends IBaseService<Branch>{
	/**
	 * 查询银行网点
	 * @param status
	 * @return
	 */
	public List<Branch> findByCorpIdAndStatus(Long corpId,Integer status);
	
	
	
	/**
	 * 查询附近银行网点
	 * @param corpId
	 * @param status
	 * @param longitude 经度
	 * @param latitude 纬度
	 * @return
	 */
	public List<Branch> getNearbyBranch(Long corpId,Integer status,double longitude,double latitude);
	
	
	
	//模糊查询网点信息
	public List<Branch> findByCorpIdAndStatusAndAddressLike(Long corpId,Integer status,String address);



	boolean importFile(MultipartFile file, Long corpid) throws Exception;
}
